<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 14-11-10
 * Time: 下午5:38
 */
require_once("../api.php");
$id = $_POST['id'];
$sql = "update user set online = 1 where user_id = '$id'";
$db = new SQLite3("../chatroom.db");
$db->exec($sql);
ajaxJSON( true, "success");
